#ifndef GLOBALVAR_H
#define GLOBALVAR_H

#include "ui/serialchoosedialog.h"

#include "singletone.h"
#include "serialcontroller.h"
#include "src/qserialproto.h"

#define PI 3.1415926535898

class globalVarManager
{
public:
    globalVarManager();
    SerialController *GetSerailController();
    void SetSerialController(SerialController *);
    SerialChooseDialog &SeirialDialog();
    QSerialProto &SerialProto(){return mProto;};
private:
    SerialController *mSerial;
    SerialChooseDialog mSerialChoose;
    QSerialProto mProto;
};

typedef Singletone<globalVarManager> GlobalVarManager;
#endif // GLOBALVAR_H
